package com.ytc.service;

import com.ytc.model.Keyword;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "service-provider")
public interface KeywordService {
    //zzm 查询关键字
    @RequestMapping("queryKeywords")
    List<Keyword> queryKeywords();

    //柴晓颖：查询关键字关联关系回填
    @RequestMapping("queryKeywordsByBookid")
    List<Keyword> queryKeywordsByBookid(@RequestParam("bookid") Integer bookid);
}